package com.opensource.baodaoimpl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.opensource.baodaoimpl.mapper.DemotableMapper;
import com.opensource.datamodel.entity.Newtable;
import com.opensource.datamodel.service.DemotableService;
//import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 25133
* @description 针对表【NewTable】的数据库操作Service实现
* @createDate 2024-05-06 16:20:12
*/
@DubboService(interfaceClass = DemotableService.class,version = "1.0")
public class DemotableServiceImpl extends ServiceImpl<DemotableMapper, Newtable>
    implements IService<Newtable>, DemotableService {

    @Autowired
    private DemotableMapper demotableMapper;
    @Override
    public String d() {
        return "成功调用服务,ok";

    }

    @Override
    public List<Newtable> selecAll() {

        return demotableMapper.selectList(null);


    }
}




